<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
    <link rel="stylesheet" href="css/index.css">
</head>
<body>
    <div class="tab">
        <a class="btn-add" href="/add">添加</a>
        <table cellspacing="0" cellpadding="0">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>年龄</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <% for(var i = 0; i < list.length; i++){ %>
                    <td><%= list[i].id %></td>
                    <td><%= list[i].name %></td>
                    <td><%= list[i].gender %></td>
                    <td><%= list[i].age %></td>
                    <td>
                        <a class="btn-del" href="/edit/:id">修改</a>
                        <a class="btn-edit" href="/delete/:id">删除</a>
                    </td>
                    <% } %>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>